package com.gitee.webdav.xml;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import com.gitee.webdav.kernel.Remark;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author hongda.li@hand-china.com
 */
@Data
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
@JacksonXmlRootElement(localName = "propfind", namespace = "DAV:")
@SuppressWarnings("SpellCheckingInspection")
public class PropertiesFind {

    @Remark("检索全属性")
    @JacksonXmlProperty(localName = "allprop", namespace = "DAV:")
    private AllProperties allProperties;

    @Remark("检索全属性的名称")
    @JacksonXmlProperty(localName = "propname", namespace = "DAV:")
    private PropertiesName propertiesName;

    @Remark("检索指定属性值")
    @JacksonXmlProperty(localName = "prop", namespace = "DAV:")
    private Properties properties;
}
